//package org.jeecg.modules.config;
//
//import org.springframework.beans.factory.annotation.Qualifier;
//import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.jdbc.core.JdbcTemplate;
//
//import javax.sql.DataSource;
//
//@Configuration
//public class SqlServerConfig {
//
//    @Bean(name = "sqlServerDataSourceProperties")
//    @ConfigurationProperties("spring.datasource.sqlserver")
//    public DataSourceProperties sqlServerDataSourceProperties() {
//        return new DataSourceProperties();
//    }
//
//    @Bean(name = "sqlServerDataSource")
//    public DataSource sqlServerDataSource() {
//        return sqlServerDataSourceProperties().initializeDataSourceBuilder().build();
//    }
//
//    @Bean(name = "sqlServerJdbcTemplate")
//    public JdbcTemplate sqlServerJdbcTemplate(@Qualifier("sqlServerDataSource") DataSource dataSource) {
//        return new JdbcTemplate(dataSource);
//    }
//}